import * as Api from 'src/api/net';

const MOCK_HOST = "http://localhost:3000";

const URL_Jinhuo_List: URL_MOCK = {
    url: '/caigou/jinhuo/list.do',
    mock: true,
    mockHost: MOCK_HOST //统一模块配置, 或者单独配置
}

const URL_Jinhuo_Show: URL_MOCK = {
    url: '/caigou/jinhuo/show.do',
    mock: true,
    mockHost: MOCK_HOST //统一模块配置, 或者单独配置
}

/** 采购进货列表 */
export const ajaxJinhuoList = (func:any) => {
    Api.AjaxPost(Api.urlHandler(URL_Jinhuo_List), {}, func);
}


/** 采购进货列表 */
export const ajaxJinhuoShow = (id:number, func:any) => {
    Api.AjaxPost(Api.urlHandler(URL_Jinhuo_Show), {id: id}, func);
}